<template>
    <view class="buy-buy-button">
        <text>点击购买</text>
    </view>
</template>

<script>
export default {
    methods: {
        handleBuy() {
            console.log('点击购买按钮')
        }
    }
}
</script>

<style lang="scss" scoped>
.buy-buy-button {
    width: 82px;
    height: 32px;
    background: linear-gradient(148deg, #DB5656 0%, #C41F1F 100%);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    
    text {
        z-index: 12;
		font-size: 28rpx;
		color: #F9DDB3;
        line-height: 32px;
        text-align: center;
    }
    
    &::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(125deg, 
            rgba(224, 184, 121, 1),
            rgba(249, 221, 179, 1),
            rgba(234, 189, 156, 1)
        );
        border-radius: 18px;
        z-index: -1;
    }
    
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        border-radius: 16px;
        z-index: 0;
    }
}
</style>